$(function(){
    $("#mypic").css("background-image", "url(\""+ctx+"/"+user_pic+"\")");
});


//info-nav点击动画
function infoNavClick(op){
    var c = $(op).css("background-color");
    if(c == "rgba(255, 255, 255, 0.2)"){
        $("#info-nav-box").children("div").attr("class","info-nav");
        $(op).attr("class","info-nav-now");
    }
    var text = $(op).children("span").text();
    if(text == "我的帮帮"){
        $("#iframe-box").attr("src",ctx+"/page/myhelp.jsp");
    }else if(text == "个人信息"){
        $("#iframe-box").attr("src",ctx+"/page/myinfo.jsp");
    }else if(text == "我的私信"){
        $("#iframe-box").attr("src",ctx+"/page/myletter.jsp");
    }else if(text == "我的钱包"){
        $("#iframe-box").attr("src",ctx+"/page/mywallet.jsp");
    }
}


//用户头像的悬浮样式
function picOverStyle() {
    $("#myinfo").css("display","block");
}
//用户头像的悬浮样式
function picOutStyle() {
    $("#myinfo").css("display","none");
}


[ctx + '/newrelease.jsp', 'no']
//iframe窗
function openIframe () {
    var index = layer.open({
        type: 2,
        content: [ctx + '/newrelease.jsp', 'no'],
        area: ['320px', '195px'],
        maxmin: true
    });
    layer.full(index);
}
